{% extends "base.html" %}

{% block content %}
  <div class="container-fluid p-4">
    <div class="d-flex justify-content-between align-items-center mb-4">
      <h5>用户管理</h5>
      <button class="btn btn-primary">
        <i class="fa fa-plus me-1"></i> 添加用户
      </button>
    </div>

    <!-- 用户搜索框 -->
    <div class="card mb-4 p-3 border">
      <div class="row g-3">
        <div class="col-md-3">
          <input type="text" class="form-control" placeholder="搜索用户名">
        </div>
        <div class="col-md-3">
          <input type="text" class="form-control" placeholder="搜索手机号">
        </div>
        <div class="col-md-3">
          <select class="form-select">
            <option value="">全部状态</option>
            <option value="active">正常</option>
            <option value="inactive">禁用</option>
          </select>
        </div>
        <div class="col-md-3">
          <button class="btn btn-secondary w-100">搜索</button>
        </div>
      </div>
    </div>

    <!-- 用户表格 -->
    <div class="card border rounded-lg">
      <div class="table-responsive">
        <table class="table table-hover mb-0">
          <thead class="table-light">
          <tr>
            <th>ID</th>
            <th>用户名</th>
            <th>手机号</th>
            <th>注册时间</th>
            <th>状态</th>
            <th>操作</th>
          </tr>
          </thead>
          <tbody>
          <tr>
            <td>1</td>
            <td>张三</td>
            <td>138****1234</td>
            <td>2024-01-15</td>
            <td><span class="badge bg-success">正常</span></td>
            <td>
              <button class="btn btn-sm btn-info me-1">编辑</button>
              <button class="btn btn-sm btn-danger">禁用</button>
            </td>
          </tr>
          <tr>
            <td>2</td>
            <td>李四</td>
            <td>139****5678</td>
            <td>2024-02-20</td>
            <td><span class="badge bg-secondary">禁用</span></td>
            <td>
              <button class="btn btn-sm btn-info me-1">编辑</button>
              <button class="btn btn-sm btn-success">启用</button>
            </td>
          </tr>
          <!-- 更多用户数据... -->
          </tbody>
        </table>
      </div>
      <!-- 分页 -->
      <div class="p-3 border-top d-flex justify-content-end">
        <nav aria-label="Page navigation">
          <ul class="pagination mb-0">
            <li class="page-item disabled"><a class="page-link" href="#">上一页</a></li>
            <li class="page-item active"><a class="page-link" href="#">1</a></li>
            <li class="page-item"><a class="page-link" href="#">2</a></li>
            <li class="page-item"><a class="page-link" href="#">3</a></li>
            <li class="page-item"><a class="page-link" href="#">下一页</a></li>
          </ul>
        </nav>
      </div>
    </div>
  </div>
{% endblock %}